#pragma once

#include <linux/swait.h>

struct completion
{
    struct swait_queue_head wait;
    unsigned long done;
};

void complete(struct completion *x);

bool completion_done(struct completion *x);
void wait_for_completion(struct completion *x);
